From 662f35562b89f185fc3901594c039d8ffa20bc9a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Luk=C3=A1=C5=A1=20Tyrychtr?= Date: Wed, 8 Mar 2023 09:24:35 +0100 Subject: [PATCH] GtkLinkButton: Set the visited state when appropriate --- gtk/gtklinkbutton.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtk/gtklinkbutton.c b/gtk/gtklinkbutton.c index 25ed3d2333..c459acf239 100644 --- a/gtk/gtklinkbutton.c +++ b/gtk/gtklinkbutton.c @@ -673,6 +673,10 @@ gtk_link_button_set_visited (GtkLinkButton *link_button, { link_button->visited = visited; + gtk_accessible_update_state (GTK_ACCESSIBLE (link_button), + GTK_ACCESSIBLE_STATE_VISITED, visited, + -1); + if (visited) { gtk_widget_unset_state_flags (GTK_WIDGET (link_button), GTK_STATE_FLAG_LINK); -- 2.30.2